<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=no"/>
		<script type="text/javascript" src="js/jquery-3.3.2.js"></script>
		<title>宣传报道</title>
	</head>
	<style type="text/css">
		*{
			padding: 0;
			margin: 0;
			overflow: hidden;
		}
		#rach{
			padding: 0 5px;
			width: 365px;
			box-sizing: border-box;
			overflow: hidden;
		}
		.loading{
			display: none;
			color: lightslategray;
			text-align: center;
			height: 100vh;
			line-height: 100vh;
		}
		.MsoNormal img{
			width: 300px !important;
		}
	</style>
	<body>
		<div class="loading">数据加载中...</div>
		<div id="rach"></div>
	</body>
	<script type="text/javascript">
		var r = window.location.search.substr(1);
		let rid = r.substr(3)
		let data = {
			id: rid
		}
		let reportid = JSON.stringify(data);
		function getReportitem(data){
			$.ajax({
				type: "post",
				url: "http://nercar.tpddns.cn:2074/pro/report/findReportById",
				data:data,
				beforeSend : function(){
					$('.loading').css("display","block")
				},
				// async: false,
				dataType: 'json',
				contentType: 'application/json',
				success: function(res) {
					$('.loading').css("display","none")
					$('#rach').html(res.data[0].content);
					document.title = res.data[0].title;
					// $('.MsoNormal').removeAttr('style');
					// $("img").parent().parent().removeAttr('style')
				},
				error:function(err){
					console.log(err)
				}
			})
		}
		getReportitem(reportid)
	</script>
</html>
